<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <!--<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">-->
    <!--<meta http-equiv="Pragma" content="no-cache">-->
    <!--<meta http-equiv="Expires" content="0">-->
    <!--上三句的作用：清除浏览器的缓存，以达到刷新的作用-->
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <meta content="telephone=no,email=no" name="format-detection">
    <link rel="stylesheet" href="<?=base_url()?>/assets/wap/css/gg.css?_=<?=STATIC_VERSION?>">
    <link rel="stylesheet" href="<?=base_url()?>/assets/wap/css/index.css?_=<?=STATIC_VERSION?>">
    <link rel="stylesheet" href="<?=base_url()?>/assets/wap/css/swiper.min.css?_=<?=STATIC_VERSION?>">
    <script src="<?=base_url()?>/assets/wap/js/jquery-1.8.3.min.js"></script>
    <script src="<?=base_url()?>/assets/wap/js/index1.js?_=<?=STATIC_VERSION?>"></script>
    <title>丘丘谷</title>
</head>
<body>
<div class="navbar">
    <div class="navbar-inner">
        <a href="search.html" class="search">搜索你想要的商品</a>
    </div>
</div>
<div style="display: block" class="main">
    <?php if(!empty($slide)):?>
    <div class="swiper_img">
        <div class="swiper-container swiper-container-2">
            <div class="swiper-wrapper">
                <?php foreach($slide as $s): ?>
                <div class="swiper-slide">
                    <a href="javascript:void(0)"><img src="<?=$s['thumb']?>" alt=""></a>
                </div>
                <?php endforeach;?>
            </div>
            <!-- Add Pagination -->
            <div class="swiper-pagination"></div>
        </div>
        <div class="fbg"></div>
    </div>
    <?php endif; ?>

    <div class="content">
        <?php if(!empty($lists)):?>

        <?php foreach($lists as $l):?>
        <div class="product">
            <a class="bg_img" href="/goods/detail?goodsId=<?=$l['goodsId']?>">
                <img src="<?=$l['thumb']?>" alt="">
            </a>
            <div class="look">
                <h3><a href="/goods/detail?goodsId=<?=$l['goodsId']?>"><?=$l['goodsName']?></a></h3>
                <p>
                    <span class="badge">疯抢价</span>
                    <strong class="index-price">￥30.00</strong>
                </p>
            </div>
        </div>
        <?php endforeach; ?>
        <?php endif; ?>

    </div>
</div>

<footer>
    <a href="/home" class="active">首页</a>
    <a href="/car">购物车</a>
    <a href="/order">订单</a>
    <a href="/me">我的</a>
</footer>
<script src="<?=base_url()?>/assets/wap/js/swiper.min.js?_=<?=STATIC_VERSION?>"></script>

</body>
</html>